<div class="footer">
    <p>Copyright 2018 <a href="#">www.dreamphp.com.cn</a> All Rights Reserved</p>
</div>

<script src="/static/index/js/jquery-3.3.1.min.js"></script>
<script src="/static/index/js/bootstrap.min.js"></script>
<script src="/static/lib/layer/layer.js"></script>
<script>
    $(function () {
        $('#postArticle').click(function () {
            layer.open({
                title:'投稿中心暂时关闭',
                content:'支付模块上线以后，重新开放投稿中心！',
                icon:5,
                anim:6
            });
            return false;
        });

        $('#loginout').click(function () {
            $.ajax({
                url:"{:url('index/index/loginout')}",
                type:'post',
                dataType:'json',
                success:function () {
                    layer.msg('退出成功！', {
                        icon:6,
                        time:2000
                    }, function () {
                        location.href = location.href;
                    });
                }
            });
            return false;
        });
    });
</script>